#include "widget.h"

#include <QApplication>
#include <QFile>
QString loadQss()
{
    QFile file(":/style.qss");
    file.open(QFile::ReadOnly);
    QString style = file.readAll();
    file.close();
    return style;
}

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    //全局样式
    //a.setStyleSheet("QPushButton {color: red;}");

   // a.setStyleSheet(loadQss());

    Widget w;
    w.show();
    return a.exec();
}
